using System;
using System.Collections;
using System.Data;
using System.Data.SqlClient;

namespace DataAccess.Common
{
    public class ClsUtility
    {
        private static int Pkey;
        public static Hashtable theParams = new Hashtable();

        public enum ObjectEnum
        {
            DataSet,DataTable,DataRow,ExecuteNonQuery
        }

        public static void Init_Hashtable()
        {
            theParams.Clear();
            Pkey = 0;
        }
        public static void AddParameters(string FieldName,SqlDbType FieldType,string FieldValue)
        {
            Pkey = Pkey + 1;
            theParams.Add(Pkey, FieldName);
            Pkey = Pkey + 1;
            theParams.Add(Pkey, FieldType);
            Pkey = Pkey + 1;
            theParams.Add(Pkey, FieldValue);
        }
    }
}
